//
//  GYDRefreshFooter.swift
//  Weibo
//
//  Created by 贵永冬 on 16/7/29.
//  Copyright © 2016年 贵永冬. All rights reserved.
//

import UIKit

class GYDRefreshFooter: MJRefreshAutoNormalFooter {

    override func placeSubviews() {
        super.placeSubviews()
        // 箭头的中心点
        let arrowCenterX = GYDWindowWidth/2.0 - 40
        let arrowCenterY = self.mj_h * 0.5
        let arrowCenter = CGPointMake(arrowCenterX, arrowCenterY)
        self.loadingView.center = arrowCenter
    }
    func settingParameter() {
        self.backgroundColor = BASECOLOR
        self.stateLabel.font = UIFont.systemFontOfSize(13)
        self.stateLabel.textColor = RGB(150, g: 150, b: 150)
        self.setTitle("", forState: MJRefreshState.Idle)
        self.setTitle("", forState: MJRefreshState.Pulling)
        self.setTitle("加载中...", forState: MJRefreshState.Refreshing)
    }
}
